	package com.niuwa.p2p.service.resource;
	
	import java.util.HashMap;
import java.util.List;

import com.niuwa.p2p.entity.resource.Resource;
	
	public interface ResourcesService {
		
		
		/**
		 * 获取所有资源
		 */
		public List<Resource> searchAllResources();
	
		/**
		 * 查找全部权限对应的资源
		 * 
		 * @return
		 */
	
		public List<Resource> getResourceByRoleId(Integer roleId);
	
		/**
		 * 查询所有角色对应的资源
		 * 
		 * @return
		 */
		public List<HashMap<String,Object>> searchResources();
		
		
		public List<Resource> searchResourcesByUserInfo(HashMap<String,String> paramMap);
		
		
		public List<Resource> searchAuthResourcesByUserInfo(HashMap<String,String> paramMap);
		
		
		/**
		 * 查询角色对应的不同资源
		 * 
		 * @return
		 */
		public List<String> searchDistinctResource();
		
		
		/**
		 * 
		 *为资源授权
		 * @param authorityParam
		 *
		 */
		public void updateAuthorize (String roleId,String[] resourceNoArr ,String[] unCheckResourceNoArr);
		
		
	}
